# cli

# ./budibase_cli.sh
# wget -q https://raw.fastgit.org/budibase/cli/master/install/install.sh -O - | /bin/bash

# wget -qO - https://ghproxy.net/https://github.com/budibase/cli/releases/download/v1.9.1/budibase_linux_amd64.tar.gz | sudo tar xfz - -C /usr/local/bin/
export namespace="budibase"
export app_name="budibase"
export helm="budibase/budibase"
export repo="budibase"
export url="https://budibase.github.io/budibase/"

# helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

# helm search repo budibase --devel --versions

helm upgrade --create-namespace --install \
    -n $namespace $app_name $helm \
    -f ./budibase/values.yaml
# --version $version
# --set global.ha.enabled=true # 高可用

# 升级完budibase版本 更新运行的应用pod

# kubectl rollout restart deploy/<Application deployment name>
